package com.gexiaobao.pigeon.app.model.bean

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

/**
 * @Author      : hxw
 * @Date        : 2024/3/21 16:19
 * @Describe    :
 */
@Parcelize
class RaceVoucherResponse(

    val total: Int = 0,
    var list: ArrayList<ListBean> = ArrayList(),

    ) : Parcelable {

    /**
     * 数据是否为空
     */
    fun isEmpty() = list == null || (list as List<*>).isEmpty()

    @Parcelize
    class ListBean(

        var raceId: Int = 0,
        var name: String = "",//比赛名称
        var raceRules: String = "",//规程
        var raceGuarantee: String = "",//竞赛保证书
        var landCertificate: String = "",//土地证明
        var businessLicense: String = "",//营业执照
        var idCardFront: String = "",//身份证正面
        var idCardBack: String = "",//身份证反面
        var list: ArrayList<ListBeanRelated> = ArrayList(),

        ) : Parcelable {

        /**
         * 数据是否为空
         */
        fun isEmpty() = list == null || (list as List<*>).isEmpty()

        @Parcelize
        class ListBeanRelated(

            var name: String = "",
            var path: String = "",

            ) : Parcelable

    }

}